<?php
use Buan\UrlCommand;
?>
<div class="head">
	<h1>System Settings</h1>
</div>

<form method="post" action="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'settings')); ?>">
	<div class="std">
		<dl>
			<dt>Maintenance mode</dt>
			<dt class="aid">Enable this mode before performing system upgrades</dt>
			<dd>
				<label><input type="radio" name="maintenanceMode" value="0" <?php echo !isset($setting['maintenanceMode']) || $setting['maintenanceMode']!=1 ? 'checked="checked"' : ''; ?> /> Disabled</label><br/>
				<label><input type="radio" name="maintenanceMode" value="1" <?php echo isset($setting['maintenanceMode']) && $setting['maintenanceMode']==1 ? 'checked="checked"' : ''; ?> /> Enabled</label> &mdash; <strong>enabling maintenance mode will make your website temporarily inaccessible to visitors</strong>
			</dd>
		</dl>

		<p>
			<button class="submit" value="Save">Save</button>
		</p>
	</div>
</form>
